{% extends "../base.html" %}

{% block title %}IssueController#edit{% endblock %}

{% block content %}
        <form action="/issue/update" method="post">
            <fieldset>
            <legend>Edit Issue</legend>
                <p>url: <input type="text" name="url" value="{{ url }}"></p>
                <p>title: <input type="text" name="title" value="{{ title }}"></p>
                <p>comment: <textarea name="comment" rows="4" cols="16">{{ comment }}</textarea></p>
                <p>status:
                    <select name="status" size="1">
                        {% if status %}
                        <option value="">None</option>
                        {% else %}
                        <option value="" selected>None</option>
                        {% endif %}
                        {% for s in status_list %}
                        {% ifequal status.key s.key %}
                        <option value="{{ s.key }}" selected>{{ s.title }}</option>
                        {% else %}
                        <option value="{{ s.key }}">{{ s.title }}</option>
                        {% endifequal %}
                        {% endfor %}
                    </select>
                </p>
                <p>tags: <input type="text" name="tags" value="{{ tags }}"> (comma separated)</p>
                <p>
                    <input type="submit" value="Submit">
                    <input type="reset" value="Reset">
                    <input type="button" value="Cancel" onClick="javascript: history.go(-1)">
                    <input type="hidden" name="id" value="{{ params.id }}">
                </p>
            </fieldset>
        </form>
{% endblock %}